package com.socket.learing.transfer;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class CommonConstant {

    /*服务端广播监听端口*/
    public static final int SERVICE_DATAGRAM_PORT = 30000;
    /*客户端广播端口*/
    public static final int CLIENT_DATAGRAM_PORT = 30001;

    /*TCP传输服务端接收IP*/
    public static final int TRANSFER_SERVICE_PORT = 40000;

    /*服务端获取到的用户队列*/
    public static final CopyOnWriteArrayList<UserInfo> SERVICE_USER_INFOS = new CopyOnWriteArrayList<UserInfo>();

    /*线程池*/
    public static final ThreadPoolExecutor THREAD_POOL_EXECUTOR = new ThreadPoolExecutor(20,200,60, TimeUnit.SECONDS,new ArrayBlockingQueue<Runnable>(500));

}